package org.casscommunity.sights.shared.place;

import java.io.Serializable;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class EditPlace extends Place implements Serializable {

	private static final long serialVersionUID = 1L;

	private String key;
	
	public EditPlace() { }
	
	public EditPlace(String key) {
		this.key = key;
	}
	
	public String getKey() {
		return key;
	}
	
	public static class Tokenizer implements PlaceTokenizer<EditPlace> {
        public String getToken(EditPlace place) {
            return place.key;
        }
        public EditPlace getPlace(String token) {
            return new EditPlace(token);
        }
    }
	
}
